﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WeChatParking.Core.Payment.WeixinPay
{
    /// <summary>
    /// 微信JS调用权限配置
    /// </summary>
    public class WxpayJsConfigModel
    {
        /// <summary>
        ///签名随机串
        /// </summ  ary>
        public string NonceStr { get; set; }

        /// <summary>
        ///签名随机串
        /// </summ  ary>
        public string JsapiTicket { get; set; }

        /// <summary>
        /// 时间戳
        /// </summary>
        public string TimeStamp { get; set; }


        /// <summary>
        ///  当前网页的URL，不包含#及其后面部分
        /// </summ  ary>
        public string Url { get; set; }

        /// <summary>
        /// 签名
        /// </summ  ary>
        public string Signature { get; set; }

        public string WxAppID { get; set; }

        public IDictionary<string, string> GetParameters()
        {
            Dictionary<string, string> parameters = new Dictionary<string, string>();
            parameters.Add("noncestr", this.NonceStr);
            parameters.Add("jsapi_ticket", this.JsapiTicket);
            parameters.Add("timestamp", this.TimeStamp);
            parameters.Add("url", this.Url);
           // parameters.Add("signature", this.Signature);
            return parameters;
        }
    }
}
